/*
 * @Author: fangquan
 * @Date: 2020-6-19 10:00:00
 * @Last Modified by: fangquan
 * @Last Modified time: 2020-6-19 10:00:00 
 * @Usage 移动端设备环境检测
 */

let ua = navigator.userAgent.toLowerCase();

export default {
  mobile: !!ua.match(/(iphone|ipod|android|ios|ipad)/),
  android: ua.includes("android") || ua.includes("adr"),
  ios: ua.includes("iphone") || ua.includes("ipad"),
  wechat: ua.includes("micromessenger"),
  weibo: ua.includes("weibo")
}